package com.breeze.breezelive.record.bean;

import android.media.MediaCodec;

import java.nio.ByteBuffer;

public class MutexData {
    private ByteBuffer byteBuffer;
    private MediaCodec.BufferInfo bufferInfo;
    private boolean isVideo;

    public MutexData(boolean isVideo, byte[] bytes, MediaCodec.BufferInfo bufferInfo) {
        this.isVideo = isVideo;
        this.byteBuffer = ByteBuffer.wrap(bytes);
        this.bufferInfo = bufferInfo;
    }

    public boolean isVideo() {
        return isVideo;
    }

    public ByteBuffer getByteBuffer() {
        return byteBuffer;
    }

    public MediaCodec.BufferInfo getBufferInfo() {
        return bufferInfo;
    }
}